﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="CreateEdit.aspx.cs" Inherits="Company_CreateEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <style type="text/css">
        
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h3>
        Create/Edit</h3>
    <hr />
    <div>
        <asp:ValidationSummary ID="vsCompanyProfile" ValidationGroup="CompanyProfile" runat="server"
            BackColor="#FFCCFF" BorderStyle="Solid" BorderWidth="1px" ForeColor="#FF3300"
            ShowMessageBox="True" />
    </div>
    <asp:HiddenField ID="hidCompanyId" runat="server" Value="-1" />
    <table>
        <tr>
            <td>
                Name:
            </td>
            <td colspan="4">
                <asp:TextBox runat="server" ID="txtCompanyName" Width="400px" MaxLength="250" AutoCompleteType="Company" />
                <asp:RequiredFieldValidator ID="rfvLastName" runat="server" ErrorMessage="Company name is required!"
                    ControlToValidate="txtCompanyName" Text="*" ValidationGroup="Companyprofile"
                    ForeColor="#FF3300"></asp:RequiredFieldValidator>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Other Name:
            </td>
            <td colspan="4">
                <asp:TextBox runat="server" ID="txtCompanyName2" MaxLength="250" AutoCompleteType="Company"
                    Width="400px" />
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Founder:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtFounderName" MaxLength="250" Width="200px" AutoCompleteType="DisplayName" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                Principal:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtPrincipalName" MaxLength="250" AutoCompleteType="DisplayName"
                    Width="200px" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Opening Year:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtOpeningYear" Width="120px" MaxLength="4" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Conact Line 1:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtContactLine1" MaxLength="250" Width="200px" AutoCompleteType="DisplayName" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                Conact Line 2:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtContactLine2" MaxLength="250" AutoCompleteType="DisplayName"
                    Width="200px" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Fax Line 1:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtFaxNo1" MaxLength="250" Width="200px" AutoCompleteType="DisplayName" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                Fax Line 2:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtFaxNo2" MaxLength="250" AutoCompleteType="DisplayName"
                    Width="200px" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Email 1:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtEmail1" MaxLength="250" Width="200px" AutoCompleteType="DisplayName" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                Email&nbsp; 2:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtEmail2" MaxLength="250" AutoCompleteType="DisplayName"
                    Width="200px" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Address Line 1:
            </td>
            <td colspan="4">
                <asp:TextBox runat="server" ID="txtAddress1" MaxLength="1000" Width="520px" AutoCompleteType="DisplayName"
                    Rows="2" TextMode="MultiLine" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Address Line 2:
            </td>
            <td colspan="4">
                <asp:TextBox runat="server" ID="txtAddress2" MaxLength="1000" Width="520px" AutoCompleteType="DisplayName"
                    Rows="2" TextMode="MultiLine" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                Description:
            </td>
            <td colspan="4">
                <asp:TextBox runat="server" ID="txtDescription1" MaxLength="2000" Width="520px" AutoCompleteType="DisplayName"
                    Rows="4" TextMode="MultiLine" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Other<br />
                Description:
            </td>
            <td colspan="4">
                <asp:TextBox runat="server" ID="txtDescription2" MaxLength="2000" Width="520px" AutoCompleteType="DisplayName"
                    Rows="4" TextMode="MultiLine" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td colspan="4">
                <asp:Label ID="lblMessage" Font-Bold="true" ForeColor="Red" runat="server" Text=""></asp:Label>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:Button ID="btnSubmit" ValidationGroup="Companyprofile" runat="server" Text="Submit"
                    OnClick="btnSubmit_Click" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
